<p class="bold">List users</p>
<p><a href="<?php echo base_url(); ?>admin/user/addUser">Thêm mới</a></p>
<table width="771" border="0">
  <tr>
    <td width="39">Stt</td>
    <td width="142">Username</td>
    <td width="178">Full name</td>
    <td width="158">Email</td>
    <td width="71">Gender</td>
    <td width="87">Level</td>
    <td width="29">Edit</td>
    <td width="33">Del</td>
  </tr>
  <?php if($listusers != NULL){ ?>
  <?php $i=1; foreach($listusers as $data){ ?>
  <tr>
  	<td><?php echo $i; ?></td>
  	<td><?php echo $data['user_name']; ?></td>
  	<td><?php echo $data['user_fullname']; ?></td>
  	<td><?php echo $data['user_email']; ?></td>
  	<td><?php if($data['user_gender'] == 1){ echo "Nam";}else{ echo "Nữ";} ?></td>
  	<td><?php if($data['user_level'] == 1){ echo "<span class='red'>Admin</span>";}else{ echo "Member";} ?></td>
  	<td><a href="<?php echo base_url(); ?>admin/user/editUser/<?php echo $data['user_id']; ?>">Sửa</a></td>
  	<td><a href="<?php echo base_url(); ?>admin/user/del/<?php echo $data['user_id']; ?>">Xóa</a></td>
  </tr>
  <?php $i++; } } ?>
</table>
<div id="pagination"><?php echo $this->pagination->create_links(); ?></div>